package com.onelap.bls.tc2.ble;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;

public class BleLeScanCallback implements BluetoothAdapter.LeScanCallback {
    private BleCallback bleCallback;

    BleLeScanCallback(BleCallback bleCallback) {
        this.bleCallback = bleCallback;
    }

    @Override
    public void onLeScan(BluetoothDevice bluetoothDevice, int rssi, byte[] scanRecord) {
        bleCallback.bleLeScanDevice(bluetoothDevice, rssi, scanRecord, BleParams.ScanDeviceStateCode.SCAN_ING);
    }
}
